package model;

import java.util.Date;

import org.workplicity.util.WorkDate;

import cc.test.bridge.NoteInterface;

public class Note implements NoteInterface
{
	protected final String REPOS_NAME = "Notes";
	protected String name = "N/A";
	protected String author = "N/A";
	protected String text = "N/A";
	protected Date date = new Date();
	protected WorkDate updateDate = new WorkDate();

	/**
	 * Default no arguments constructor
	 */
	public Note()
	{
	}

	@Override
	/**
	 * Getter for name
	 * 
	 * @return A String containing the name
	 */
	public String getName()
	{
		return this.name;
	}
	
	@Override
	/**
	 * Setter for name
	 * 
	 * @param name The name String
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	/**
	 * Getter for REPOS_NAME
	 * 
	 * @return A String containing the REPOS_NAME
	 */
	public String getRepositoryName()
	{
		return this.REPOS_NAME;
	}
	
	/**
	 * Getter for REPOS_NAME
	 * 
	 * @return A String containing the REPOS_NAME
	 */
	public String getREPOS_NAME()
	{
		return REPOS_NAME;
	}

	@Override
	/**
	 * Getter for updateDate
	 * 
	 * @return A WorkDate containing the updateDate
	 */
	public WorkDate getUpdateDate()
	{
		return this.updateDate;
	}
	
	/**
	 * Setter for updateDate
	 * 
	 * @param updateDate The updateDate WorkDate
	 */
	public void setUpdateDate(WorkDate updateDate)
	{
		this.updateDate = updateDate;
	}

	@Override
	/**
	 * Getter for author
	 * 
	 * @return A String containing the author
	 */
	public String getAuthor()
	{
		return this.author;
	}
	
	@Override
	/**
	 * Setter for author
	 * 
	 * @param author The author String
	 */
	public void setAuthor(String author)
	{
		this.author = author;

	}

	@Override
	/**
	 * Getter for date
	 * 
	 * @return A Date containing the date
	 */
	public Date getDate()
	{
		return this.date;
	}
	
	/**
	 * Setter for date
	 * 
	 * @param date The date Date
	 */
	public void setDate(Date date)
	{
		this.date = date;
	}

	@Override
	/**
	 * Getter for text
	 * 
	 * @return A String containing the text
	 */
	public String getText()
	{
		return this.text;
	}

	@Override
	/**
	 * Setter for text
	 * 
	 * @param text The text String
	 */
	public void setText(String text)
	{
		this.text = text;
	}

	@Override
	/**
	 * Dummy getId function for NoteInterface 
	 */
	public Integer getId()
	{
		return null;
	}

	@Override
	/**
	 * Dummy commit function for NoteInterface 
	 */
	public Boolean commit()
	{
		return null;
	}
}
